<?php

/*
 * Elaboraco Por: Ebrain Cedeno.
 */

class Application{
    
    public static function getSession(){
        $CurrentSession = new stdClass();
        foreach ($_SESSION as $llave => $value){
            $CurrentSession->$llave = $value;
        }
        
        return $CurrentSession;
    }
    
    public static function setSession($name,$value){
        $_SESSION[$name] = $value;
    }
    
    public static function unsetSessionValue($name){
        unset($_SESSION[$name]);
    }
    
    public static function javaScriptRegister($function){
        
        print "<script>".$function."</script>";
        
    }
}
?>
